package com.fifth.apartment.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2024-07-24
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value="Bills对象")
public class Bills implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "账单id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "费用类型id")
    @TableField("fee_id")
    private Integer feeId;

    @ApiModelProperty(value = "费用计算规则")
    @TableField("fee_value_id")
    private Integer feeValueId;

    @ApiModelProperty(value = "水费金额")
    @TableField("water_cost")
    private Integer waterCost;

    @ApiModelProperty(value = "水量")
    @TableField("water_value")
    private Integer waterValue;

    @ApiModelProperty(value = "用户id")
    @TableField("user_info_id")
    private Integer userInfoId;

    @ApiModelProperty(value = "账单生成日期")
    @TableField("bill_date")
    private LocalDate billDate;

    @ApiModelProperty(value = "缴费截止日期")
    @TableField("due_date")
    private LocalDate dueDate;

    @ApiModelProperty(value = "是否已支付/1：已支付/2：未支付")
    @TableField("paid")
    private Integer paid;

    @ApiModelProperty(value = "商家订单号")
    @TableField("outTradeNo")
    private Integer outTradeNo;

}
